package com.auto.api.core.type.json;

import org.springframework.core.ResolvableType;

/**
 * @program:
 * @description: 类型转换接口
 * @author: liangshf
 * @create: 2020-09-24
 */
public interface JsonTypeHandler {

    /**
     * 是否能进行该类型处理
     * @param resolvableType
     * @return
     */
    boolean canCovert(ResolvableType resolvableType);

    /**
     * 根据类型获取默认Json
     * @return
     */
    String getJson(ResolvableType resolvableType);

}
